package com.m2team.xomnhiepanh;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;

public class MenuAdapter
  extends ArrayAdapter<MenuItemObj>
{
  private final Context context;
  private final ArrayList<MenuItemObj> menuitems;
  
  public MenuAdapter(Context paramContext, ArrayList<MenuItemObj> paramArrayList)
  {
    super(paramContext, 2130903078, paramArrayList);
    this.context = paramContext;
    this.menuitems = paramArrayList;
  }
  
  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    LayoutInflater localLayoutInflater = (LayoutInflater)this.context.getSystemService("layout_inflater");
    if (paramView == null) {
      paramView = localLayoutInflater.inflate(2130903081, paramViewGroup, false);
    }
    TextView localTextView = (TextView)paramView.findViewById(2131099753);
    ImageView localImageView = (ImageView)paramView.findViewById(2131099752);
    localTextView.setText(((MenuItemObj)this.menuitems.get(paramInt)).getItemName());
    localImageView.setImageResource(((MenuItemObj)this.menuitems.get(paramInt)).getImageId());
    return paramView;
  }
  
  public static abstract interface MenuListener
  {
    public abstract void onActiveViewChanged(View paramView);
  }
}



/* Location:           C:\Users\Administrator\Downloads\Convert APK to Code\dex2jar-0.0.9.15\dex2jar-0.0.9.15\classes-dex2jar.jar

 * Qualified Name:     com.m2team.xomnhiepanh.MenuAdapter

 * JD-Core Version:    0.7.0.1

 */